package com.example.springbootshiro.dao;

import com.example.springbootshiro.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleDao {
    int deleteByPrimaryKey(Integer roleId);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    //通过username查询用户的角色集合
    List<Role> listByUsername(String username);

}